package com.ys.entity.storage;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TCW_OperateFrozenRunning", catalog="Id")
public class TcwOperateFrozenRunning extends BaseEntity<TcwOperateFrozenRunning> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="SourceType", nameJava="sourceType", typeDataBase="tinyint")
	private Integer sourceType;
	@YsField(nameDataBase="SourceId", nameJava="sourceId", typeDataBase="bigint")
	private Long sourceId;
	@YsField(nameDataBase="Vgsbm", nameJava="vgsbm", typeDataBase="varchar")
	private String vgsbm;
	@YsField(nameDataBase="ChangeFdjje", nameJava="changeFdjje", typeDataBase="decimal")
	private BigDecimal changeFdjje;
	@YsField(nameDataBase="Fdjje", nameJava="fdjje", typeDataBase="decimal")
	private BigDecimal fdjje;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TcwOperateFrozenRunning setId(Long id) {
		this.id = id;
		return this;
	}
	public Integer getSourceType() {
		return sourceType;
	}
	public TcwOperateFrozenRunning setSourceType(Integer sourceType) {
		this.sourceType = sourceType;
		return this;
	}
	public Long getSourceId() {
		return sourceId;
	}
	public TcwOperateFrozenRunning setSourceId(Long sourceId) {
		this.sourceId = sourceId;
		return this;
	}
	public String getVgsbm() {
		return vgsbm;
	}
	public TcwOperateFrozenRunning setVgsbm(String vgsbm) {
		this.vgsbm = vgsbm;
		return this;
	}
	public BigDecimal getChangeFdjje() {
		return changeFdjje;
	}
	public TcwOperateFrozenRunning setChangeFdjje(BigDecimal changeFdjje) {
		this.changeFdjje = changeFdjje;
		return this;
	}
	public BigDecimal getFdjje() {
		return fdjje;
	}
	public TcwOperateFrozenRunning setFdjje(BigDecimal fdjje) {
		this.fdjje = fdjje;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TcwOperateFrozenRunning setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TcwOperateFrozenRunning setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TcwOperateFrozenRunning setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TcwOperateFrozenRunning setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TcwOperateFrozenRunning tcwOperateFrozenRunning(
		Integer sourceType,
		Long sourceId,
		String vgsbm,
		BigDecimal changeFdjje,
		BigDecimal fdjje,
		String remark,
		Integer status
			) {
		TcwOperateFrozenRunning entity = new TcwOperateFrozenRunning();
		entity.setSourceType(sourceType);
		entity.setSourceId(sourceId);
		entity.setVgsbm(vgsbm);
		entity.setChangeFdjje(changeFdjje);
		entity.setFdjje(fdjje);
		entity.setRemark(remark);
		entity.setStatus(status);
		return entity;
	}
}